//
//  LKEmotionCell.swift
//  新浪微博
//
//  Created by 胡不归是大虾 on 2016/10/9.
//  Copyright © 2016年 胡不归是大虾. All rights reserved.
//

import UIKit

class LKEmotionCell: UICollectionViewCell {
    var indexPath: IndexPath? {
        didSet{
            testLabel.text = "第\(indexPath!.section)组,第\(indexPath!.item)行"
        }
    }
    override init(frame: CGRect) {
        super.init(frame: frame)
        setMyUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    private func setMyUI () {
        addSubview(testLabel)
        testLabel.snp.makeConstraints { (make) in
            make.edges.equalToSuperview()
        }
    }
    lazy var testLabel: UILabel = UILabel(title: "", font: 14, textColor: UIColor.brown)
}
